package com.itheima.springbootrequestresponse.pojo;

import java.util.List;

/**
 * User
 *
 * @author liliudong
 * @version 1.0
 * @description 用户类
 * @date 2023/7/7 11:16
 */
public class User {

    private String name;

    private Integer age;

    private Address address;

    private List<String> hobby;

    public List<String> getHobby() {
        return hobby;
    }

    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", address=" + address +
                ", hobby=" + hobby +
                '}';
    }
}
